package cn.itsource.pethome.system.user.mapper;

import cn.itsource.pethome.system.user.domain.User;
import cn.itsource.pethome.base.mapper.BaseMapper;
import cn.itsource.pethome.system.user.domain.UserBO;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author itsource
 * @since 2023-01-12
 */
@Repository
public interface UserMapper extends BaseMapper<User> {
    //查询该手机号是否已经被注册
    User findByPhone(String phone);

    User findByEmail(String email);

    /**
     * 通过登录表id查询对应的用户
     * @param id
     * @return
     */
    UserBO findByLoginId(Long id);
}
